package Test;

public class Student extends Person{
	
	private int id;

	public Student() {
		super();
		
	}

	public Student(int id,String name, String sex, int age) {
		super(name, sex, age);
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + getName() + ", sex=" + getSex() + ", age=" + getAge() + "]";
	}
	
	
}
